let v = new Vue({
    el:'#app',
    data:{
        pageInfo:{},
        title:''
    },
    methods:{
        findArticlePage:function (pageNum,pageSize){
            axios({
                url:`article/findArticlePage/${pageNum}/${pageSize}`,
                method:"POST",
                data: {"title":this.title}
            }).then(response=>{
                this.pageInfo = response.data.data;
            }).catch(error=>{
                layer.msg(error.message);
            })
        },
        toArticleAdd:function (){
            location.href=`article/toArticleDetail`
        },
        toArticleDetail:function (aid){
            sessionStorage.setItem("aid",aid);
        }
    },
    created:function (){
        this.findArticlePage(1,3);
    }
})